<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/static/js/resources/ext-theme-neptune/ext-theme-neptune-all.css" rel="stylesheet"/>
    <script src="/static/js/ext-all.js" type="text/javascript"></script>
    <script src="/static/js/locale/ext-lang-zh_CN.js" type="text/javascript"></script>
    <script src="/static/js/MyUtils.js" type="text/javascript"></script>

    <script src="/static/js/jquery-3.4.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('#btn').click(function () {
                document.getElementById("my_ifr").contentWindow.run_sql();
            });
        });

        var ShowWin;
        Ext.onReady(function () {
            ShowWin = new Ext.Window({
                            title: '详情',
                            width: 730,
                            height: 468,
                            autoScroll: true,
                            maximizable: false,
                            resizable: true,
                            collapsible: true,
                            closeAction: 'hide',
                            closable: true,
                            modal: 'true',
                            buttonAlign: "center",
                            layout: 'fit',
                            bodyStyle: "padding:8px 8px 8px 8px",
                            bodyCfg: {
                                tag: 'center',
                                cls: 'x-panel-body',
                            },
                            contentEl: 'dawn_sql_show1'
                        }).show();
                ShowWin.hide();
        });

        function show_win(data) {
            var tpl = new Ext.XTemplate(
				        '<table cellpadding="0" cellspacing="0" style="border:1px solid #b5e2ff;" width="630">',
                        '<tpl for="data">',
                        '<tr style="height:25px;">',
                        '<td class="t1" align="right">{name}：</td><td class="t2">&nbsp;&nbsp;<span>{value}</span></td>',
                        '</tr></tpl>',
                        '</table>'
				     );
				     tpl.overwrite(Ext.get("dawn_sql_show1"), data);

             ShowWin.show();
        }
    </script>
</head>
<body>
     <div style="height: auto;">
         <input type="button" id="btn" value="运行">
         <input type="button" id="btn_1" value="保存">
     </div>
     <div style="margin-top: 10px; height: 700px;">
         <iframe id="my_ifr" scrolling="auto" frameborder="0" width="100%" height="100%" src='/dawnclient_5/'></iframe>
     </div>
     <div id="dawn_sql_show1"></div>
</body>
</html>